package com.weixinli.dao.impl;

import java.util.List;

import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.weixinli.beans.UserReply;
import com.weixinli.dao.IUserReplyDao;

@Repository("iUserReplyDao")
public class UserReplyDaoImpl implements IUserReplyDao {
	@Resource(name="sqlSession")
	private SqlSession sqlSession;
	
	public int addUserReply(UserReply ur) {
		return sqlSession.insert("replyDao.addReply", ur);
	}

	public int delUserReply(Integer rid) {
		return 0;
	}

	public List<UserReply> getOneReply(Integer cid, Integer w_uid) {
		return null;
	}

	public List<UserReply> getAllReply() {
		return sqlSession.selectList("replyDao.allReply");
	}

}
